package com.easygem.front.converter;

import com.easygem.common.model.front.DepartmentStats;
import com.easygem.common.vo.front.DepartmentStatsVo;
import org.springframework.beans.BeanUtils;

/**
 * @author luoxi
 * @version 1.0
 * @className DepartmentStatsConverter
 * @Description 统计中心
 * 用于返回给前端的实体转换器
 * @date 2024/12/23 20:03
 */
public class DepartmentStatsConverter {
    /**
     * 转vo  ,用于返回给前端的实体
     * @return
     */
    public static DepartmentStatsVo converterToDepartmentStatsVo(DepartmentStats departmentStats){
        DepartmentStatsVo departmentStatsVo = new DepartmentStatsVo();
        BeanUtils.copyProperties(departmentStats,departmentStatsVo);
        return departmentStatsVo;
    }
}
